function showCustomer(str)
{
var xmlhttp;    
if (str=="")
  {
  document.getElementById("txtHint").innerHTML="";
  return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
	
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
	  
	  xmlDoc=xmlhttp.responseXML;
		var txt="<table border='0' ><tr><th>emp_id</th><th>emp name</th><th>sal</th><th>dept</th>";
		if(xmlDoc.nodeValue!=0)
		{
		txt=txt+"<tr><td>"+
		  xmlDoc.getElementsByTagName("id")[0].childNodes[0].nodeValue+"</td>";
	  txt=txt+"<td>"+
	  xmlDoc.getElementsByTagName("name")[0].childNodes[0].nodeValue+"</td>";;
	  txt=txt+"<td>"+
	  xmlDoc.getElementsByTagName("sal")[0].childNodes[0].nodeValue+"</td>";;
	  txt=txt+"<td>"+
	  xmlDoc.getElementsByTagName("dept")[0].childNodes[0].nodeValue+"</td>";;
		}
    }
  document.getElementById("txtHint").innerHTML=txt;
  }
xmlhttp.open("GET","DbConnect?name="+str,true);
xmlhttp.send();
}